<table style="text-align: left">
<table>
  <tr>
    <th>Device |</th>
    <th> Priority|</th>
    <th> Status</th>
    <th></th>
    <th></th>
  </tr>
<% @outlet_status.each do |outlet_status| %>
  <tr >
    <td><%= outlet_status.device_name %></td>
    <td><%= outlet_status.priority %></td>
    <td><%= if outlet_status.status == false
    			image_tag("Off.jpg", :alt => "OFF", :height => "50" )
    		elsif outlet_status.status == true
    			image_tag("On.jpg", :alt => "ON", :height => "50" )
    		end
    		%>
    </td>
    <td><%= link_to 'Edit', edit_outlet_status_path(outlet_status) %></td>
    <td><%= button_to 'Change', update_outlet_outlet_status_path(outlet_status), method: :put %></td>
  </tr>
<% end %>
</table>
<p>last updated: <%= Time.now %> <br />
simulated time: <%= UtilityFunctions.current_time[2] %></p>